package cn.cloud.jianghai.orderservice.query;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author Jiang.h
 * created 2022/5/22 11:53
 */
@Data
public class OrderQuery {

    /**
     * 订单编号
     */
    private String no;

    /**
     * 状态值
     */
    private Integer status;

    /**
     * 开始时间
     */
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date endTime;

    /**
     * 用户id
     */
    private List<Long> userIdList;

    private Integer pageNum;

    private Integer pageSize;
}
